/*
 * @Description: 
 * @Version: 1.0
 * @Autor: gaoluo
 * @Date: 2021-08-23 10:18:00
 * @LastEditors: gaoluo
 * @LastEditTime: 2021-12-02 16:27:58
 * @FilePath: /nhw/babel.config.js
 */
const plugins = [
  ['import', {
    libraryName: 'vant',
    libraryDirectory: 'es',
    style: true
  }, 'vant']
]

// 生产环境移除console
if (process.env.NODE_ENV === 'production') {
  plugins.push("transform-remove-console")
}

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset',
  ],
  plugins
}

